package com.kede.service.impl;

import com.kede.entity.Role;
import com.kede.dao.RoleDao;
import com.kede.service.RoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 【请填写作者】
 * @since 2020-04-11
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleDao, Role> implements RoleService {

    @Autowired
    RoleDao roleDao;
    @Override
    public List<Role> getListByUserId(Long id) {
        return roleDao.getListByUserId(id);
    }
}
